package com.cxria.pattern.status.func1

import groovy.transform.Immutable

@Immutable
class RunningState extends LiftState {

    @Override
    void open() {

    }

    @Override
    void close() {

    }

    @Override
    void run() {
        println '电梯上下运行...'
    }

    @Override
    void stop() {
        context.liftState = Context.stoppingState
        context.liftState.stop()
    }

}
